<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var arr = [7, 10, 6, 12, 3, 20];
			// arr[0] = 17;
			// console.log(arr[0]);
			// console.log(arr.length);

			// console.log(arr[0]);
			// console.log(arr[1]);
			// console.log(arr[2]);
			// console.log(arr[3]);
			// console.log(arr[4]);
			// console.log(arr[5]);

			//遍历
			for (var x = 0; x < arr.length; x++) {
				console.log(arr[x]);
			}
		</script>
	</head>
	<body>
	</body>
</html>
